package com.gxa.hualian.controller;

import com.gxa.hualian.service.AdminService;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.Map;

/**
 * @Author 杨天可
 * @Date 2020/10/22 18:37
 * @Version 1.0
 */
@RestController
@RequestMapping("/adm")
@Transactional
public class AdminController {
    @Resource
    AdminService adminService;

    @PostMapping("/login")
    @ResponseBody
    public Map login(@RequestParam("phone") String phone,@RequestParam("pwd") String pwd){
        return adminService.login(phone,pwd);
    }
}